package com.zhaoyue.study.jdk;

import java.util.Arrays;
import java.util.concurrent.atomic.AtomicInteger;

/**
 * Created with IntelliJ IDEA.
 * User: Administrator
 * Date: 2017/2/24
 * Time: 13:20
 * To change this template use File | Settings | File Templates.
 */
public class ArrayStudy {

    public static void main(String[] args) {

        int[] nums = new int[]{8,5,4,7,9};
        Arrays.sort(nums);


        for (int i = 0; i < nums.length; i++) {
            System.out.println(nums[i]);
        }

        AtomicInteger atomicId = new AtomicInteger(0);

        System.out.println(atomicId.addAndGet(500));


    }

}
